package com.webshop.JavaBean;

public class User {
    int ID;

    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMail() {
        return mail;
    }

    public void setMail(String mail) {
        this.mail = mail;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    String name;
    String password;
    String phone;
    String mail;
    int sex;

    @Override
    public String toString() {
        return "[ "+ID+" "+name+" "+password+" "+mail+" "+phone+" "+sex+" ]";
    }

    public User() {
        super();
    }

    public User(String name, String password, String phone, String mail, String sex) {
        this.name = name;
        this.password = password;
        this.phone = phone;
        this.mail = mail;
        this.sex = Integer.parseInt(sex);
    }
}
